#include "sys_ext.h"
//#include "os_obj.h"

/*******************************************************************************
* @brief  os_lock
* \param[in] none
* \retval: none
*******************************************************************************/
void os_lock(void)
{

}

/*******************************************************************************
* @brief  os_unlock
* \param[in] none
* \retval: none
*******************************************************************************/
void os_unlock(void)
{

}

/*******************************************************************************
* @brief  nvic_irq_set
* \param[in] IRQn
* \param[in] priority
* \param[in] newst 0-disable, other-enable
* \retval: none
*******************************************************************************/
void nvic_irq_set(IRQn_Type IRQn, uint32_t priority, uint8_t newst)
{
    NVIC_InitTypeDef  NVIC_InitStructure;
    
    if(newst)
    {
        NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
    }
    else
    {
        NVIC_InitStructure.NVIC_IRQChannelCmd = DISABLE;
    }

    NVIC_InitStructure.NVIC_IRQChannel = IRQn;
    NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = priority;
    NVIC_InitStructure.NVIC_IRQChannelSubPriority = priority;
    
    NVIC_Init(&NVIC_InitStructure);
}

void intx_alloc(void)
{

}


void intx_disable(void)
{

}

void intx_enable(void)
{

}

